﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UpdateManager {
    /// <summary>
    /// 程序集信息
    /// </summary>
    public class AssemblyInfo {
        /// <summary>
        /// 根Url地址
        /// </summary>
        private string rootUrl = String.Empty;
        /// <summary>
        /// 程序集合
        /// </summary>
        private List<AssemblyItemInfo> assemblyItems = new List<AssemblyItemInfo>();

        /// <summary>
        /// 是否自动启动执行的应用
        /// </summary>
        private bool autoStart = false;
        /// <summary>
        /// 自动启动的应用名称
        /// </summary>
        private string appName = String.Empty;

        /// <summary>
        /// 获取或设置自动启动的应用名称
        /// </summary>
        public string AppName {
            get { return appName; }
            set { appName = value; }
        }

        /// <summary>
        /// 获取是否自动启动执行的应用
        /// </summary>
        public bool AutoStart {
            get { return autoStart; }
            set { autoStart = value; }
        }

        /// <summary>
        /// 获取或设置根Url地址
        /// </summary>
        public string RootUrl {
            get { return rootUrl; }
            set { rootUrl = value; }
        }

        /// <summary>
        /// 获取或设置程序集合
        /// </summary>
        public List<AssemblyItemInfo> AssemblyItems {
            get { return assemblyItems; }
            set { assemblyItems = value; }
        }
    }
}
